package com.zhouyu.bean;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @program: spring-framework-5.3.10
 * @description: LaiFactoryBean
 * @author: chaidl  ！
 * @create: 2022-03-30 22:05
 */
@Component
public class LaiFactoryBean implements FactoryBean {

	@Override
	public Object getObject() throws Exception {
		System.out.println("走了FactoryBean方法");
		Lai lai=new Lai();
		return lai;
	}


	@Override
	public Class<?> getObjectType() {
		return Lai.class;
	}
}
